home *** CD-ROM | disk | FTP | other *** search
- Path: news2.ios.com!usenet
- From: vlad@gramercy.ios.com (Vlastimil Adamovsky)
- Newsgroups: comp.lang.c++
- Subject: Re: Pointers to member functions HOW?
- Date: Fri, 02 Feb 1996 14:49:13 GMT
- Organization: Internet Online Services
- Message-ID: <4et7ns$1ur@news2.ios.com>
- References: <31067074.6B53@compuserve.com> <4e9nh8$iji@news2.ios.com> <31113B7A.4C82@usinternet.com>
- NNTP-Posting-Host: ppp-38.ts-7.hck.idt.net
- X-Newsreader: Forte Free Agent 1.0.82
-
- Scott Jibben <sjibben@usinternet.com> wrote:
-
- >Vlastimil Adamovsky wrote:
- >>
- >> 1) you cannot cast member function to non-member. It is nonsense
-
- >You can if the method is declared as static:
-
- >class TTest {
- >public:
- > static void MemberFunction(int iVal)
- > {
- > printf("[%d]\n", iVal);
- > };
- >};
-
- It is correct. But "static member function" is not a real member
- function. It is some kind of "convenience to call it so.
- *******************************************
- * Vlastimil Adamovsky *
- * Smalltalk, C++ and Envelop development *
- *******************************************
-
-